﻿using System;

public class Program
{
    static void Main(string[] args)
    {
        if(args.Length == 2)
        {
            string templateFilePath = args[0];
            int genSide = Convert.ToInt32(args[1]);

            Debug.LogYellow("拖入需要生成的代码的xlsx的文件：");
            string filePath = Console.ReadLine();
            CodeGenerator codeGenerator = new CodeGenerator();
            codeGenerator.GeneratorCode2ClipBoard(filePath, templateFilePath, (EGenSide)genSide);
        }
        else
        {
            CodeGenerator codeGenerator = new CodeGenerator();
            codeGenerator.GeneratorCode2ClipBoard(@"C:\Users\Administrator\Desktop\config-generator\Config\ConfigExcel\g礼包表.xlsx", "Templates/EchoCfgTemplate.txt", EGenSide.Client);
            Console.ReadLine();
        }
    }
}